﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="DistributionRelationToConfirm.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.DistributionRelationToConfirm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <asp:Label ID="lblNav" runat="server"></asp:Label>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblUserId" runat="server" Text="产品名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblIsUsing" runat="server" Text="规格型号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblMaterial" runat="server" Text="材质："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            <td rowspan="3">
                                <hz:HzButton ID="btnQuery0" runat="server" OnClick="btnQuery_Click" Text="查  询" CssClass="btn" />&nbsp;<hz:HzButton
                                    ID="btnExport" runat="server" ToolTip="导出查询条件下的全部配送关系" Text="导出Excel" CssClass="btn"
                                    OnClick="btnExport_Click" />
                            </td>
                        </tr>
                        <tr>
<%--                            <td align="right">
                                <asp:Label runat="server" ID="lblPinyinCode" Text="拼音码"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtPinyinCode"></asp:TextBox>
                            </td>--%>
                            <td align="right">
                                <asp:Label ID="lblIsOnline" runat="server" Text="单位："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                配送地区：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DllArea" runat="server">
                                    <asp:ListItem Text="(全区)" Value=""></asp:ListItem>
                                    <asp:ListItem Text="呼和浩特市" Value="150100"></asp:ListItem>
                                    <asp:ListItem Text="包头市" Value="150200"></asp:ListItem>
                                    <asp:ListItem Text="乌海市" Value="150300"></asp:ListItem>
                                    <asp:ListItem Text="赤峰市" Value="150400"></asp:ListItem>
                                    <asp:ListItem Text="通辽市" Value="150500"></asp:ListItem>
                                    <asp:ListItem Text="鄂尔多斯市" Value="150600"></asp:ListItem>
                                    <asp:ListItem Text="呼伦贝尔市" Value="150700"></asp:ListItem>
                                    <asp:ListItem Text="巴彦淖尔市" Value="150800"></asp:ListItem>
                                    <asp:ListItem Text="乌兰察布市" Value="150900"></asp:ListItem>
                                    <asp:ListItem Text="兴安盟" Value="152200"></asp:ListItem>
                                    <asp:ListItem Text="锡林郭勒盟" Value="152500"></asp:ListItem>
                                    <asp:ListItem Text="阿拉善盟" Value="152900"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DllStatusType" runat="server">
                                    <asp:ListItem Text="(全部)" Value=""></asp:ListItem>
                                     <%--<asp:ListItem Text="未提交" Value="-1"></asp:ListItem>--%>
                                    <asp:ListItem Text="未确定" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="已同意" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="已拒绝" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="可配送" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            
                            <td align="right">
                                投标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_TB" runat="server"></asp:TextBox>
                            </td>
                             <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GvRelaion" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="gvwProduceCatalog_RowDataBound" EmptyDataText="暂无符合要求的数据！" DataKeyNames="AreaID,CompanyID_PS,ProcureCatalogID,IsUsing,CompanyID_TB">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="ProcureCatalogID" HeaderText="产品编号" Visible="false" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" />
            <asp:BoundField DataField="AreaName" HeaderText="配送地区" />
            <asp:BoundField DataField="AuditReason" HeaderText="备注" />
            <asp:BoundField DataField="Status" HeaderText="确认状态" Visible="false"/>
             <asp:TemplateField HeaderText="确认状态">
                <ItemTemplate>
                <asp:Label ID="lblstate" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbtnAgree" runat="server" CommandName="Agree" OnClientClick="if(!this.disabled){return  confirm('确认要同意此行信息吗？');}else{return false;}"
                        OperateType="检查配送关系" Enabled='<%#getCheckstatus(Eval("Status").ToString(),1) %>'
                        OnClick="lbtnAgree_Click">同意</hz:HzLinkButton>
                    <hz:HzLinkButton ID="lbtnDeny" runat="server" CommandName="Deny" OnClientClick="if(!this.disabled){return  confirm('确认要拒绝此行信息吗？');}else{return false;}"
                        OperateType="检查配送关系" Enabled='<%#getCheckstatus(Eval("Status").ToString(),2) %>'
                        OnClick="lbtnDeny_Click">拒绝</hz:HzLinkButton>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:CheckBox ID="addTable_chkAll" runat="server" OnClick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_GvRelaion','ctl00_ContentPlaceHolder1_GvRelaion_ctl01_addTable_chkAll');" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="checkbox1" runat="server" Enabled='<%#getCheckstatus(Eval("Status").ToString(),3) %>'
                        OnClick="chkChecked(this,'ctl00_ContentPlaceHolder1_GvRelaion','ctl00_ContentPlaceHolder1_GvRelaion_ctl01_addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <table class="querylist">
        <tr>
            <td align="right">
                <hz:HzButton ID="hzbtnAgree" runat="server" Width="100px" ToolTip="批量同意" Text="批量同意"
                    OperateType="检查配送关系" CssClass="btn" OnClick="hzbtnAgree_Click" OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_GvRelaion','请至少选定一条记录！')) {return confirm('确定同意这些选择的记录吗？');}return false;" />
            </td>
            <td align="left">
                <hz:HzButton ID="hzbtnDeny" runat="server" ToolTip="批量拒绝" Text="批量拒绝" Width="100px"
                    OperateType="检查配送关系" CssClass="btn" Enabled="true" OnClick="hzbtnDeny_Click"
                    OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_GvRelaion','请至少选定一条记录！')) {return confirm('确定拒绝这些选择的记录吗？');}return false;" />
            </td>
        </tr>
    </table>
    <div class="listip">
        <ul>
            <li>说明：<span>检查本企业相关的配送关系状态；只有“未确定”，“已同意”和“已拒绝” 三种状态可以进行操作；“未提交”说明生产企业已经建立配送关系，但是还没有提交给配送企业确认；“可配送”说明生产企业对配送企业同意的配送关系进行了确认；</span></li>
        </ul>
    </div>
</asp:Content>
